package com.tikou.ui.view.circleview;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.tikou.androidadvanceproject.R;

/**
 * Created by Tikou on 2018/1/3 09:51.
 * 作者：wangwei
 * 邮箱：ww@winning.com.cn
 * 说明：
 * 参考：
 */

public class CirCleBarActivity extends AppCompatActivity implements View.OnClickListener{
    private CircleBarView circleBarView;
    private Button bt_start;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_circlebar);
        circleBarView = findViewById(R.id.circlebar);
        bt_start = findViewById(R.id.bt_start);
        bt_start.setOnClickListener(this);
        circleBarView.setProgressTime(3000);
    }

    @Override
    public void onClick(View v) {
        int viewId = v.getId();
        switch (viewId){
            case R.id.bt_start:
                circleBarView.start();
                break;
            default:
                break;
        }
    }
}
